<?php
require_once(WEBROOT.SITE_RELATIVE.'component'.DIRECTORY_SEPARATOR.'ckeditor'.DIRECTORY_SEPARATOR.'ckeditor.php');
//die(WEBROOT.'account'.DIRECTORY_SEPARATOR.'component'.DIRECTORY_SEPARATOR.'ckeditor'.DIRECTORY_SEPARATOR.'ckeditor.php');
//require_once(WEBROOT.'account'.DIRECTORY_SEPARATOR.'component'.DIRECTORY_SEPARATOR.'ckfinder'.DIRECTORY_SEPARATOR.'ckfinder.php');
class Helper_Ckeditor
{
	public function initEditor($editorName, $contentValue, $width='94%', $height='200')
	{
		$CKEditor = new CKEditor();
		$CKEditor->config['width'] = $width;
		$CKEditor->config['height'] = $height;
		//$config['toolbar'] = 'Basic';
		$CKEditor->basePath = '/component/ckeditor/';

		//CKFinder::SetupCKEditor( $CKEditor, '/component/ckfinder/' ) ;
		//application\upload\fckeditor

		$CKEditor->editor($editorName, $contentValue);
	}
}
?>